//package com.deer.wms.base.system.util.quartz;
//
//
//import org.quartz.*;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.scheduling.quartz.SchedulerFactoryBean;
//import org.springframework.stereotype.Component;
//
//
//@Component
//public class CronSchedulerJob {
//
//    @Autowired
//    private SchedulerFactoryBean schedulerFactoryBean;
//
//    private void scheduleJob1(Scheduler scheduler) throws SchedulerException {
//
////
////        JobDetail jobDetail = JobBuilder.newJob(MM101.class)
////                .withIdentity("job1", "group1").build();
////        Trigger trigger = TriggerBuilder.newTrigger().withIdentity("trigger1", "triggerGroup1")
////                .startNow()//立即生效
////                .withSchedule(SimpleScheduleBuilder.simpleSchedule()
////                        .withIntervalInSeconds(10)//每隔10s执行一次
////                        .repeatForever()).build();
////        scheduler.scheduleJob(jobDetail, trigger);
////
////    }
////    public void scheduleJobs() throws SchedulerException {
////        Scheduler scheduler = schedulerFactoryBean.getScheduler();
////        scheduleJob1(scheduler);
////
////    }
//}
